package com.atde._05_behavioral_design_patterns.strategy.improve;


/**
 * @BelongsProject: hsp_java_design_mode
 * @BelongsPackage: com.atde._05_behavioral_design_patterns.strategy.improve
 * @Author: Del
 * @CreateTime: 2025-06-30  15:56
 * @Description: 策略模式：具体的鸭子 --- 玩具鸭
 * @Version: 1.0
 */
public class ToyDuck extends Duck{

    public ToyDuck() {
        super(new NoFlyBechavior());
    }

    @Override
    public void display() {
        System.out.println("玩具鸭");
    }
}
